﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Puerts;

public class JsEnvExample1 : MonoBehaviour
{
    private JsEnv jsEnv;
    // Start is called before the first frame update
    void Start()
    {
        jsEnv = new JsEnv();
        jsEnv.Eval("require('example1/ScriptExample1')");
    }

    // Update is called once per frame
    void Update()
    {
        jsEnv.Tick();
    }
    private void OnDestroy()
    {
        jsEnv.Dispose();
    }
}
